//
//  LYSegmentView.h
//  SelectCity
//
//  Created by liuyan on 2019/3/19.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LYSegmentViewDelegate <NSObject>
@optional
- (void)customSegmentedValueChanged:(UISegmentedControl *_Nullable)segment;
@end

NS_ASSUME_NONNULL_BEGIN

@interface LYSegmentView : UIView <UIScrollViewDelegate>


@property (nonatomic, weak) id<LYSegmentViewDelegate> delegate;

@property (nonatomic, strong) UIScrollView * customScr;

@property (nonatomic, strong) NSArray * titleArr;

@property (nonatomic, strong) UIFont * fontSize;

@property (nonatomic, assign) float View_W;

@property (nonatomic, assign) float itmeViewW;


- (void)setSegmentWithBackground:(UIColor *)background titleArray:(NSArray *)titleArr titleFont:(UIFont *)fontSize titleLineSelectColor:(UIColor *)titleSelectColor normal:(UIColor *)normalColor withselectedIndex:(NSInteger)index;


- (void)setselectedIndex:(NSInteger)index;

//添加右角标
- (void)setRightTopLabelWithAry:(NSArray*)topNumAry;


@end

NS_ASSUME_NONNULL_END
